package com.example.demo.pojo;



import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Version;
import java.math.BigDecimal;

/**
 * 账户信息
 * @author kathy
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = true)
public class Account2 extends BaseDateTimeEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Long memberId;
    /**
     * 现金
     */
    private BigDecimal cash;

    /**
     * 彩金
     */
    private BigDecimal gameCash;

    /**
     * 冻结资金
     */
    private BigDecimal frozenCash;
    /**
     * 红包
     */
    private BigDecimal briberyMoney;

    /**
     * 乐观锁标识
     */
    @Version
    private Long version = 1L;

    /**
     * 客户端ID
     */
    private String clientVersion;
}